import java.util.Scanner;
public class Book37_7{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.printf("请输入一个Double型整数：");
		double b,n;
		int a;
		n = input.nextDouble();
		a = (int)n;
		b = n-a;
		System.out.println("整数部分为 " + a);
		System.out.println("小数部分为 " + b);
	}
}